package com.test.multithread.future;

import java.util.function.Supplier;

class SuppDemo {
    private static String getString(Supplier<String> fun) {
        return fun.get();
    }

    public static void main(String[] args) {
        String person1 = "苍井空";
        String person2 = "小泽玛利亚";
        String person3 = "波多野结衣";
        String person4 = "泷泽萝拉";
        System.out.println(getString(() -> person1 + person2 + person3 + person4));
    }
}
